<?php
namespace app\manager\model;

use think\Model;

class CarBrands extends \think\Model
{
    protected $table = 'car_brands';
    
    
    
    /**
     * 获取房车品牌信息
     * @param  [type] $getTypeArray [description]
     * @return [type]               [description]
     */
    public function getCarBrandInfo($getTypeArray)
    {
    	return self::get($getTypeArray);
    }

    public function getCarBrandsLists()
    {
        return $this->select();
    }

    public function createCarBrand($post_carbrand_info)
    {
        return $this->create($post_carbrand_info);
    }

    public function updateCarBrand($id, $post_carbrand_info)
    {
        return $this->where('id',$id)->update($post_carbrand_info);
    }

    public function delInfo($id)
    {
        $result = $this->destroy($id);
        if ($result) {
            return true;
        }
        return false;
    }

    
}